import url from '../url-config.js'
import { Api } from './ApiClass'
import req from '../request'
export const dutyPerformanceApi = {}
dutyPerformanceApi.getDutyPerformanceList = data => {
    return req.get(url.dutyPerformance.list, data)
}
dutyPerformanceApi.getDutyPerformanceDetails = data => {
    return req.get(url.dutyPerformance.details, {
        // taskId: 'e15f0ec2297b4395ac7225f508cb2166',
        // userId: '52b9fd58f2e449ec8b07178a7dd3e086',
        ...data,
    })
}
dutyPerformanceApi.getFormTemplate = data => {
    return req.get(url.dutyPerformance.formTemplate, {
        // id: '6c0ee7c0fa4048b5b9a5f9912e9f6542',
        ...data,
    })
}
dutyPerformanceApi.getCodeDataAnalysis = data => {
    return req.get(url.dutyPerformance.codeDataAnalysis, {
        ...data,
    })
}
dutyPerformanceApi.exportWord = data => {
    return req.get(
        url.dutyPerformance.exportWord,
        {
            ...data,
        },
        'arraybuffer',
    )
}
